'use strict';
let Koa = require('koa');
let bodyParser = require('koa-bodyParser');
let app = new Koa();
let con = require('./controllers');
let statics = require('koa-static');
let templating = require('./templating');





app.use(bodyParser());
app.use(statics(__dirname + '/static'))
app.use(templating);

app.use(con());
let port = 8000;
app.listen(port, () => {
    console.log(`http://localhost:${port}`);
})